Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct calculation of padding in percent #5846

Merged
merged 2 commits into from
Nov 21, 2018
Merged

Conversation

chtheis
Copy link
Contributor

@chtheis chtheis commented Nov 18, 2018

Fixes a bug introduced with #4620

@simonbrunel simonbrunel added this to the Version 2.8 milestone Nov 19, 2018
@simonbrunel
Copy link
Member

@chtheis thanks for the fix. As you said in #4620, the unit test uses 10%, which actually work with the previous code (x / 10 === x * 10 / 100). Can you update the unit test with a better value?

@chtheis
Copy link
Contributor Author

chtheis commented Nov 19, 2018

Done

Copy link
Member

@simonbrunel simonbrunel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @chtheis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants